//
//  CShareCommentMgr.h
//  WZEfengAndEtong
//
//  Created by wanzhao on 16/3/2.
//  Copyright © 2016年 wanzhao. All rights reserved.
//
//EFENGSHARECONTENT(数据库名称)
#import <Foundation/Foundation.h>
@class EFengContent;

@interface CShareCommentMgr : NSObject

- (BOOL)insertWithShareComment:(EFengContent *)content;
- (BOOL)batchInsertWithCommentList:(NSArray *)commentList;

- (BOOL)updateWithShare:(EFengContent *)content;
- (BOOL)batchUpdateWithCommentList:(NSArray *)commentList;
- (NSInteger)getShareCommentAllUnReadCount;
- (NSInteger)getSharePraiseAllUnReadCount;
- (NSInteger)getSharePraiseAllReadCountWithShareId:(NSString *)shareId;
 //bug 8985 fixed by lixu
- (NSArray *)getUnsendCommentList;
- (NSArray *)getShareCommentWithShareId:(NSString *)shareId;
- (BOOL)delShareCommentWithShareId:(NSString *)shareId;
- (BOOL)delShareCommentWithCommentId:(NSString *)CommentId;
- (BOOL)delSharePraiseWithShareId:(NSString *)shareId userId:(NSString *)userId;
- (EFengContent *)getZanIdWithShareId:(NSString *)shareId userId:(NSString *)userId;
- (BOOL)isHasZanIdWithShareId:(NSString *)shareId userId:(NSString *)userId;
- (BOOL)updateShareCommentIsUnNetCompletedWithComment:(EFengContent *)comment isDel:(BOOL)isDel;
- (EFengContent *)getShareCommentWithCommentIndex:(NSInteger)CommentIndex;
- (BOOL)delShareCommentWithCommentIndex:(NSInteger)CommentIndex;
- (NSArray *)getUnSendShareComment;
- (BOOL)updateCommentWithCommentId:(NSString *)commentId date:(NSString *)date;
- (EFengContent *)getMaxShareComment;
- (NSString *)getMaxDateShareComment;
- (NSString *)getMinDateShareComment;
- (BOOL)updateAllUnreadCommentToReadComment;
- (EFengContent *)getMaxUnreadShareComment;
- (BOOL)updatePraiseWithComment:(EFengContent *)comment;
- (NSArray *)getAllUnreadShareComment;
- (NSArray *)getSharePraiseWithShareId:(NSString *)shareId;
- (BOOL)updateUnAttentionCommentUnReadToRead;
- (BOOL)batchUpdateUnreadCommentToReadCommentWithCommentList:(NSArray *)commentList;
@end
